package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.security.PrivateKey;

@Data
@AllArgsConstructor //添加构造方法
@NoArgsConstructor  //添加无参构造
@Accessors(chain = true)
@TableName("user") //引入表名
public class User implements Serializable {
    @TableId(type = IdType.AUTO) //主键自增
    private Integer id;
    @TableField("name")
    private  String name;
    private  Integer age;
    private  String sex;
}
